<?php foreach ($scenery->result() as $key => $val ): ?>
<li>
	<a href="<?php echo site_url('scenic/info/index/'.$val->sid); ?>" class="am-cf">
		<div class="pic">
			<img class="lazy" src="/skins/home/images/load.jpg" data-original="<?php echo $this->config->show_image_url($val->minipics, '300-300'); ?>">
		</div>
		<div class="detail">
			<p class="text-overflow title"><?php echo $val->name_hanzi; ?></p>
			<div class="am-cf price-wrap">
				<div class="left tags">
					<?php if ($val->advance_date == 0) :?>
						<span>可订今日票</span>
					<?php endif;?>
					<?php if ($val->off_bonus > 0) :?>
						<span>积分</span>
					<?php endif;?>
				</div>
				<div class="right price"><span><i>￥</i><?php echo $val->shop_price; ?></span>起</div>
			</div>
			<div class="bottom">
				<div class="has-buy"><?php echo $val->sales_volume; ?>人已购买</div>
				<div class="level am-cf"><h6><?php echo mb_strstr(trim(mb_strstr($val->address, ' ')), ' ', true); ?></h6><span><?php echo $val->star_rank > 2 ? substr('AAAAA' , 0 , $val->star_rank) : substr('AAAAA' , 0 , 3) ?>景区</span></div>
			</div>
		</div>
	</a>
</li>
<?php endforeach ?>